import { LAYOUT } from '@/router/constant';

export default {
  path: '/cashier',
  name: 'Cashier',
  component: LAYOUT,
  meta: {
    title: '收银',
    hideBreadcrumb: true,
  },
  children: [
    {
      path: 'index',
      name: 'CashierIndex',
      component: () => import('@/views/cashier/index.vue'),
      meta: {
        title: '开单',
        showNav: true,
        hiddenOverflow: true,
      },
    },

    {
      path: 'index',
      name: 'CashierChild',
      meta: {
        title: '收银',
        hideBreadcrumb: true,
      },
      children: [
        {
          path: 'take-order',
          name: 'CashierTakeOrder',
          component: () => import('@/views/cashier/take-order.vue'),
          meta: {
            title: '取单',
            showNav: true,
          },
        },

        {
          path: 'daily-overview',
          name: 'CashierDailyOverview',
          component: () => import('@/views/cashier/daily-overview.vue'),
          meta: {
            title: '当日台账',
            showNav: true,
          },
        },
      ],
    },
  ],
};
